use test;

# user collection

db.users.insert(
{
	name: 'name1',
	sex: 'femal',
	age: 18
});

db.users.ensureIndex(
	{
		"name": 1
	},
	{
		unique: true
	}
);


# classroom collections

db.classRooms.insert(
{
	name: "room1",
	userIds: [
		ObjectId("52ffc4a5d85242602e000000"),
      	ObjectId("52ffc4a5d85242602e000001")
	]
}
);

db.classRooms.ensureIndex(
	{
		"name": 1
	},
	{
		unique: true
	}
);